package com.itheima.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.Pojo.Dish;
import com.itheima.dto.DishDto;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品信息和对应的口味信息
    public DishDto getByIdWithFlavor(Long id);

    //修改操作
    public void updateWithId(DishDto dishDto);

    //删除操作
    public void deleteWithFlavor(List<Long> ids);
}
